package com.zhouchao.user.feign.code;

import com.zhouchao.user.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: zhouchao
 * @Date: 2021/10/15 13:59
 * @Description:
 */
@FeignClient(name="service-code")
public interface CodeServiceFeignClient {

    @GetMapping("api/code/validate/{email}/{code}")
    Result<Integer> validateCode(@PathVariable String email, @PathVariable String code);

}
